<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@ include file="/static/web/jsp/include.jsp"%>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>我的-个人中心</title>
    <meta name="description" content="网站描述" />
    <meta name="keywords" content="关键词" />
    <link rel="stylesheet" href="${path}/static/web/style/style.css">
    <link rel="stylesheet" href="${path}/static/web/style/hizoom.css">
    <link rel="stylesheet" href="${path}/static/web/style/page_nav.css">
    <link rel="stylesheet" href="${path}/static/web/style/art.css">
</head>
<body>
    <!-- 导航 -->
    <%@ include file="/static/web/jsp/top.jsp"%>

    <div id="mineController" v-cloak>

        <!-- 详情内容 -->
        <div class="model_container">
            <div class="link_sprite">当前位置：<a href="">首页</a> &#155; <a href="">个人中心</a> &#155; <a href="">基本信息</a></div>

            <div class="model_container clearfix">
                <!-- 我的中心导航 -->
                <%@ include file="/static/web/jsp/mine_nav.jsp"%>

                <!-- 右侧内容区 -->
                <div class="mine_aside">

                    <div class="block_box box_shadow">
                        <div class="info_item">
                            <span class="label">头像：</span>
                            <div class="info_content">
                                <div class="info_avatar" @click="uploadImg">
                                    <img class="info_pic" init-src="${path}/static/web/images/avatar.png" v-sy-img="userInfo.headImg"/>
                                    <%--<input type="file" class="info_file" />--%>
                                </div>
                            </div>
                        </div>
                        <div class="info_item">
                            <span class="label">昵称：</span>
                            <div class="info_content">
                                <input class="info_put" type="text" placeholder="请输入昵称" v-model="userInfo.nickName" :readonly="userInfo.userState==1"/>
                            </div>
                        </div>
                        <div class="info_item">
                            <span class="label">性别：</span>
                            <div class="info_content">
                                <label class="sex_label">
                                    <input class="sex_radio" checked type="radio" name="sex_radio" value="1" v-model="userInfo.sex">
                                    <span class="sex_radioInput"></span>先生
                                </label>
                                <label class="sex_label">
                                    <input class="sex_radio" type="radio" name="sex_radio" value="0" v-model="userInfo.sex">
                                    <span class="sex_radioInput"></span>女士
                                </label>
                            </div>
                        </div>
                        <div class="info_item">
                            <span class="label">生日：</span>
                            <div class="info_content">
                                <input class="info_put" type="text" id="select_date" readonly  placeholder="请输入年月日" v-model="userInfo.birthday"/>
                            </div>
                        </div>
                        <div class="info_item">
                            <span class="label">职业：</span>
                            <div class="info_content">
                                <input class="info_put" type="text" placeholder="请输入职业" v-model="userInfo.job"/>
                            </div>
                        </div>
                        <div class="info_item">
                            <span class="label">签名：</span>
                            <div class="info_content">
                                <input class="info_put" type="text" placeholder="请输入签名" v-model="userInfo.sign"/>
                            </div>
                        </div>
                        <div class="info_item">
                            <span class="label">所在地：</span>
                            <div class="info_content">
                                <input class="info_put" type="text" id="city" readonly placeholder="请输入所在地" v-model="userInfo.area"/>
                            </div>
                        </div>
                        <div class="info_item" @click="changePwdClick(true)">
                            <span class="label">修改密码：</span>
                            <div class="info_content edit_pwd_btn">
                                <!-- 修改密码加的 -->
                                <san class="holder_txt">点击修改密码</san>
                                <i class="fr icon icon_back"></i>
                            </div>
                        </div>

                        <div class="info_btns">
                            <a class="btn btn_orange" href="javascript:void(0);" @click="logout">退出登录</a>
                            <a class="btn btn_primary" href="javascript:void(0);" @click="save">保存</a>
                        </div>

                    </div>

                </div>
            </div>
        </div>

         <!-- 修改密码 -->
         <div class="art_model pwd_model" :style="{'display':change?'block':'none'}">
            <div class="model_wrap">
                <div class="model_header">
                    <div class="head_title">修改密码</div>
                    <a class="icon icon_close head_close" href="javascript:void(0);" @click="changePwdClick(false)"></a>
                </div>
                <div class="art_model_content">
                    <form action="">
                        <div class="model_put"><input type="password" placeholder="请输入原密码" v-model="pwd.old"/></div>
                        <div class="model_put"><input type="password" placeholder="请输入新密码" v-model="pwd.newPwd"/></div>
                        <div class="model_put"><input type="password" placeholder="请确认新密码" v-model="pwd.repeat"/></div>
                    </form>
                </div>
                <div class="model_btn mt_20" @click="changePwd">
                    <a href="javascript:void(0);" class="btn btn_primary">确 定</a>
                </div>
            </div>
        </div>


    </div>

    <iframe name='hidden_frame' id="hidden_frame" style="display: none;"></iframe>
    <form action="${path}/fileUpload?callback=callback" id="form1" name="form1" encType="multipart/form-data" method="post" target="hidden_frame">
        <input type="file" id="img" accept="image/jpg, image/jpeg, image/png, image/gif" name="file" style="background: white;display: none;" />
    </form>

    <!-- 客服 -->
    <%@ include file="/static/web/jsp/footer.jsp"%>

</body>
<%--<script src="${path}/static/web/js/jquery.min.js"></script>--%>
<script src="${path}/static/web/js/art.js"></script>
<script src="${path}/static/web/js/lib/md5.js"></script>

<script src="${path}/static/web/js/laydate/laydate.js"></script>
<script src="${path}/static/web/js/popt.js"></script>
<script src="${path}/static/web/js/cityJson.js"></script>
<script src="${path}/static/web/js/citySet.js"></script>

<script src="${path}/static/web/js/biz/mine_info.js"></script>
<script>
//    $('.edit_pwd_btn').click(function(){
//        $('.pwd_model').show();
//    })
</script>
</html>